home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
COMAL
/
T-COMAL Today
/
(k)te.d64
/
bubblesort2.proc
< prev
next >
Wrap
Text File
|
2009-01-03
|
351b
|
14 lines
9290 PROC BUBBLESORT2
9295 END':=11
9300 REPEAT
9305 EXCHANGED:=FALSE
9310 END':-1
9315 FOR START:=1 TO END' DO
9320 IF NAME$(START)>NAME$(START+1) THEN
9325 EXCHANGE(NAME$(START),NAME$(START+1))
9330 EXCHANGED:=TRUE
9335 ENDIF
9340 ENDFOR START
9345 UNTIL EXCHANGED=FALSE
9350 ENDPROC BUBBLESORT2